UnitTestTrainer

open class UnitTestTrainer(val minLevel: Level = Level.VERBOSE, showTimestamp: Boolean = true) : Trainer(source)

TestTrainer handles simple console logging during Kotlin tests.

This trainer provides clean, uncolored console output during tests. Perfect for environments that don't support ANSI colors, or when you prefer simple clean output.

Since

0.0.1

Parameters

minLevel

Minimum log level to output (defaults to VERBOSE - shows all)

showTimestamp

Whether to include timestamps in output (defaults to true)

Inheritors

Constructors

Link copied to clipboard
constructor(minLevel: Level = Level.VERBOSE, showTimestamp: Boolean = true)

Properties

Link copied to clipboard
open override val minLevel: Level
Link copied to clipboard
override val pack: Pack

The Pack that this Trainer belongs to, which will be used to find duplicative trainers and avoid duplicative log messages.

Functions

Link copied to clipboard
open override fun handle(level: Level, tag: String, message: String, throwable: Throwable?)

Handle a log message by outputting it to plain console during tests.